package com.sharemarking.application.common.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sharemarking.application.common.entity.Employee;
import com.sharemarking.application.common.repository.EmployeeRepo;

@Controller
@RequestMapping("chat")
public class ChatController {
	
	@Autowired
	EmployeeRepo er;
	
	/**
	 * 查找所有聊天用户列表
	 * @param e
	 * @param page
	 * @param size
	 * @param model
	 * @return
	 */
	@RequestMapping("index")
	@ResponseBody
	public List<Employee> getAllPeople(Employee e, Integer page, Integer size, Model model){
		List<Employee> list=null;
		
		list=(List<Employee>) er.findAll();
		
		return list;
	}
	

}
